// ignore_for_file: file_names

import 'package:flutter/material.dart';

class MyApp2 extends StatelessWidget {
  const MyApp2(
      {super.key,
      this.title = '',
      this.content = '',
      this.textCol = Colors.black,
      this.textSize = 0});

  final String title;
  final String content;
  final Color textCol;
  final double textSize;
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          backgroundColor: Colors.orange,
          toolbarHeight: 100,
          title: Center(
            child: Text(
              '$title ',
              style: const TextStyle(color: Colors.white, fontSize: 50),
            ),
          ),
        ),
        body: Center(
          child: Text(
            "$content ",
            textDirection: TextDirection.ltr,
            style: TextStyle(
                fontSize: textSize,
                color: textCol,
                fontWeight: FontWeight.w800),
          ),
        ),
      ),
    );
  }
}
